package com.qf.openapi.web.master.service.impl;

import com.qf.openapi.web.master.dao.CustomerDao;
import com.qf.openapi.web.master.entity.Customer;
import com.qf.openapi.web.master.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {

    @Autowired
    CustomerDao customerDao;
    @Override
    public int insert(Customer customer) {
        return customerDao.insert(customer);
    }

    @Override
    public List<Customer> selectAll() {
        final List<Customer> customers = customerDao.selectAll();
        return customers;
    }
}
